"""
float(x) 将 x 转换成浮点型
"""
# str 转 float
str1 = '3.124'
print(float(str1), type(float(str1)))
i = 2024
print(float(i))
b = True
print(float(b))

